Fixed recent emailing function bug