fix email None problem