Attempted fix for render crash.