fix a bug that the agent send empty offer