commit render state before clear