parser: fix Enum.first deprecation