Fixed bug which caused empty command to crash