Fix https://github.com/Ultimaker/CuraEngine/issues/140