rename the directory correctly