Fix email bug with default url