Fix setting originURL