bugfix in enum constant parsing