fix bug gmcommand