fix a small bug in enqueue caused