fix get bug when scope is undefined