Diverse bugfixes.

Signed-off-by: cGIesen <info@klick-punkte.info>