Fix NullPointer exception.