fix loading next page bug