Return values of functions were modified

Signed-off-by: Bleska <blecha.jiri@gmail.com>