Fixed query links not working.