fixed the bug of data instance score calculating