Help in patient search

hello someone cane help me to search patients by facility in openemr 6
my problem is when i reach of the patient it display all facility patients and patients filtering by home facility not working