fix quotient when alg dim decreases