Fix use of enum for new Moose p1