Updating divide by 0 issue