Small tweak to enum parsing.