Fixed shader injection issue where the shader pointer could occasionally be written to the wrong place (thx Zedd)