Stencil problem

Hello.
I tried a node stencil system for games, and it works perfectly, but it has one problem.



The edge between textures, in the transistion between materials, the stencil put the first texture. And i want the stencil put a smooth transistion, like a normal texture. How can i solve this?
I upload the blend:
https://mega.co.nz/#!LNQBUSIJ!QdbjCiCDlKV9A2M5-G2RYx7B9-oVcxYiK4dLnOqgag4