Fixes #184 Bug in enum parsing