shaderhelper memory fix