fix zero division exception bug