correcting horizontal command