Fix messages duplicating handler

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