fix score saving bug