Config undefined fix