fix inverting typo