fix messageCount bug when removing plane