fixes minor bug with renaming