OK, I have found a solution, but I am not happy with it, because I don't know the real cause of this problem.
I used solution mentioned in this answer: https://stackoverflow.com/a/2068597/385264
It's not really an answer, because I have no idea, what and why is going on. I am glad that I got it to work, but I would like if someone could explain it.
I hope, at least, it will help someone with similar problem.