Fix NPE with getRenderer()