fix email bug in type