Fixed exit on UNDEF bug