bugfix for paginating when no filter was entered