Minor fixes

Signed-off-by: Kirill Zotkin <kirillzotkin@gmail.com>