Fixes bug on mail update during import