Fixed error in command code.