Fixes to email online and pdf