Fixes #184 Bug in enum parsing

Fixes #184 Bug in enum parsing