Fixes log queries' quantity limit