Fixed wrongly checked bypass permission