fixed a few issues in the tutorial