This problem took me a lot of time, so now I want to help everyone who had the same problem)