Fix use of enum for new Moose p3