Fix compact

Signed-off-by: Bogdan Dobrelya <bogdando@mail.ru>