Fix svg external resources bug.