Fixed bug folding quotients with negative numbers.