Fix crash with configureRendering