Fixed RT#90667

This fixes RT#90667: warnings produced by the change to the way enum should be called.

See https://rt.cpan.org/Ticket/Display.html?id=90667