fix render timing