Fix for adding file to folder