Fixed render bug