fix score always being reset