fix #1805 fixed a bug with sensor.store