Fix bug in filtering by roles with id >= 10