fixed problem with saving score