fix crash on load