Fixed duplicate file table entries for flagged files