Fixed a bug in score