Fixed crash while saving score