fixed the gmcommand