Fixed results fetching on big databases, fixed range bug