Corrections for Maya 2014

Added corrections to avoid crash on Maya 2014 Mac.