Fixing prohibition flags bug