Fixes Moose enum warnings due to Moose update