Fixed ScoreAPI in MainWindow