fixed bug for results emails