bug fix in round calc