fixed file not being added to directory.