small fix in shared file creation