Re-apply fix loading of only sites with open status (issue #230; version 240)