Fixed URL replacement onload bug.