divided by zero bugfix