fix a complicated bug with contextRendering and auxes