fixing enum parse