fix null pointer exception
grade debug log level