fix automatic offer query