write merge file bugs