fix bug in renameing code