fixed bug with email index