Fix for ban queries.