fixed a crash with null pointer