Solve crashing problem.