fix crashing error of null pointer