fixing query links again