fixed baseURL in GetState and fixed bug in MyTools