fix render on edit