Fixed some warnings

Signed-off-by: Ondrej Skopek <skopekondrej@gmail.com>