fixed issue where cached inverse wasn't returned correctly.