fixed scoring after undo