Fixed bug where providing limit without any other filter would cause an error.