Fixes issue #14 (child exception not throw)
Fixes checking undefined variable