Fix rename function
Merge pull request #4 from comodit/rename

Fix rename function