Fix problems for Blender 2.66