fix updateSiteInformation function

@PerilousApricot, please review