Fix issue with sending apply emails