Fix crash problem.