Fix public url bug