fix for older blender versions
cleanup