cube now renders without bugs