ban function fix