Scoreboard query not reflecting the true value