fix for bugzilla 7693

if the enum member does does not parse exactly it will throw.