bug fix about division error