fixed the pathexists in the category base model