Added exception for folding on divide by zero