zero division bug fix