Fixed bugs in getFileData method, need to fix if Data.equals(null) IH