fix index error in negate_cube