Modify findByPath to exclude deleted data