Fixed some bugs. Scoreboard crash is still in