Fixing bug in command