fix check_scoreboard buffer cleanup