fix global lookup undefined