Fixed the previous commit for EditCommand.