prevent panic if a case file is found outside a case