refixed crash