resume undefined fix