Fix variable name emailkey which should be globalkeys.

Also, remove unused reference to util.