fix a small bug in exclusive mode