Fix bug in path of new files