Removed bug when executing the command from the command line.