Fix report nullpointer bug