fix feature inversion