Fixed a score calculating bug