Upgrade from v6.0.0(3) to v7.0.0 - Inactive Facilities select issue

After upgrade to new V7.0.0. I found another issue between previous versions and new version.
In all other versions of OpenEMR, if in Edit Facility section remove all selections, unused facility become inactive, and its not appears in Calendar view. In v7.0.0. this function is not working and inactive facility still appears on calendar.

v7.0.0. Facility NYC MED, no any functions selected, this facility suppose to be inactive

Inactive Facility still appear on calendar.

v6.0.0(3) new Facility created NYC MED, selected us service location

Selected Facility appear on Calendar

Facility selection removed, and facility moved to inactive

Inactive Facility not appear on Calendar

I used OpenEmr demos v5.0.1 (7) and v7.0.0. to show an examples.