bugfix in rename function