fixed div by zero bug
fixes, fixes, fixes