Correcting width and height