fix render bug