y_invert fix