fixed division by 0

:)