Fixed crash when getRenderType gets called