Fix a bug in setBypassed()