Updated a few errors

Hello,

While following your tutorial (which was very helpful), I experienced some errors. The fixes helped me complete the tutorial.