minor undefined fix