fixes getScope return type - was an array but needs to be a string