single calculation bug fix