few minor fixes

Signed-off-by: nixnodes <code@eth.si>