fix null pointer exception
null pointer