more stable, small fixes

Signed-off-by: Ondrej Rafaj <ondrej.rafaj@fuerteint.com>