Fix turtorial

Fixes problems in tutorial brought to my attention by @rodly.