tutorial fixes (rendering, crashing)