Fixed the double PreRenderCallback being set in shapestest