fix crash bug after scroll to end