fix paths in querys