Fix error in running commands from console