fix handling of deleted facilities