fixed bug with email table