Fix couple warnings

Signed-off-by: Piotr Bocheński <bochenski.piotr@gmail.com>