Fix import overwrite nil values and change basis of result for sending email