bug fix for res/ban button