fixed small bugs

Signed-off-by: Kai Kreuzer <kai@openhab.org>