fixed a crash bug 5.6.5