Fix inversion