corrected mistake in parsing enums