I don't like this ugly, completely non-elegant solution. But it gives 100% result.