handle file ids that do not exist correctly