fix code for newer version of Moose ( 2.0801 on Fedora 19 )