fix for earlier blender versions, need to test