Fix command order for correct error msg