fix crash on new page