Fixed get_email bug