minor fixes to tutorial

Thanks to Taneb for the report.