fix crash line 313