fix hard crash