fixed query undefined error
v0.1.21