fixes search & usage of non-existing file