Fixed crash if definitions were missing.