Fix a bug when getting a find command.