fixing the reference of renamed file