fixed directory issue with renamed file