reverted undefined fix