added defensive code to filehits mapper