bug fix in db score