Correcting format errors