problem with setting page limit