fix crash on starting spring