fixed a small bug in MQ coding simulation