fix bug in openhab rules