Magn 225

Fix for magneto issue 225

http://adsk-oss.myjetbrains.com/youtrack/issue/MAGN-225

test will be brought in in a couple of days