fixed stupid inversion scaling bug