fix changeSiteState function
Merge pull request #4812 from ticoann/resource_control_fix

fix changeSiteState function