Bug fix for divide-by-zeros