fixed a crash bug that call method