fixed email queue issue in trigger dispatcher