I don't remember exactly how, but you must repair them.
Try taking a look at the crafting menu or your book at home.