Fix endings