fixed URL replacement issue