fix pagination for livechat on invalid page