Fixed bugs with the ban support