error and log messages must be cleared after render