fix crash on start