improve robustness

Signed-off-by: Karsten Gebbert <karsten@null2.net>