fixing the get tag query