fix ajax pagination