Can't paint or spawn foliage on landscape

Do you have a custom collision setup? I had similar problem once, Turned out if I used custom collision channels, foliage painting could not detect my landscape.