Error flushing works