fix bugs

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