Possible bug in emailing certificate