fix crash when load next page