fixed bug with ban checking