some kind of NullPointer fix