fix receiveBounce to check for query.code