bug in mailservice fixed