fixed bug in saving score