Render cube example fixes