bug fix

- Added prevention dividing on zero