handle case where fileid is not set