Fix bugs in Score class