fixes cgaffinetransfrommake bug