Fix ban script errors