fix render warning