Fix rendertarget attachment