Fix local FileReference bug.