Bugfixes from initial testing

Signed-off-by: Malte Sussdorff <malte.sussdorff@cognovis.com>