Fixed Rename bug (issue 174)