Fix use of enum for new Moose p4