https://spark.desk.com/agent/case/16231 fixed typo for setDataMode function