fix NullPointerError