really fixed

there was some issues with the inversion logic.