fix setting color of 3D objects