Fixed crash on getting render type