Fixed bad command order