fixed issue #40

Signed-off-by: Kai Kreuzer <kai@openhab.org> (github: @kaikreuzer)