fixed a bug in the master command parsing handler