fixing enum parsing.