fix email log order