fixed issues in the tutorial