Fix syntax issue with indices in create_quad.
Fix issue with cube indices creating extra dimension.