fix a bug if the command is not found, an error occurs