Fixed a bug with context in emails utils.