fix renaming script execution order