fixed the href generation of renamed file