Fixed RenderTarget and Texture bugs