fix a potential issue in command