fixing mail error