Foliage is Underground

So I just made some grass which looks like this on the static mesh:

The texture(which was straight) got rotated 90 degress when I put it onto a material, so I used a custom rotator to rotate the texture 90 degress, so final result looks upright:

But now that I put this static mesh in foliage tool(with default, all the grass spawns underground:

But if I remove the custom rotator from the material, it does spawn over the ground, but as I earlier mentioned, its rotated 90 degress.

Any help would be God’s hand, Thank You.