fix bugs in example4

Signed-off-by: Alexandr <yakovlev@primepix.ru>