Fix rendertarget issue when resuming