Little bugs fixed

Signed-off-by: Volodymyr Gamula <v.gamula@gmail.com>