Forum:Slimes like interdiction torch?

I've been working on a map, and I have a building with interdiction torches. For some reason, they can get inside the building and are actually attracted to it. Can someone explain to me why this is or how to keep slimes form even spawning? (Don't say peaceful and also I've tried to replace the ground block but that didn't work)