Thanks for your answer! Sorry, I should mentioned all the details at the beginning.
I can't believe but the problem was solved when I placed the previous view and this one into different files (because before it I kept them together). Don't know why, but it helped