fix crash when start app