Fix broken ends