fixed updating queries that are already up to date