Fixed wrong order of commands