Fix error report writh, flow