fixed query tag
fixed refresh bug