Corrected order of commands