invert fixes