Fix for render target creation