fix bug in mayatoolkit