Fixing previous error in rename