fix divided by zero bug
update