Error resolved, simple shapes can be correctly rendered now