some bugfixes

Signed-off-by: NurPech <nurpech@nurpech.de>