Fix bug fix in when getting a file