The defeat of Polish intervention in the XVII century