Fixing issue with undefined getSiteID()