Wrong problem with Landscape grass layer

Hi, I used the grass node on the terrain texture, but the end result was not what I expected. The red map is where I want the grass to be generated, but now the grass is generated outside the red map and its edges are straight.