fix for new API names and crash in render callback.