Bug Fix in csv/email