Fixed render crash