fix bug in monitorghost command