Minor fixes

Signed-off-by: Samuli Seppänen <samuli.seppanen@gmail.com>