I'm guessing you have passable (transparent) squares on a higher layer. I could be wrong. I wouldn't know for sure unless I saw the file. Run over the walls on 2nd and 3rd layer with the Upper Left Square in the tileset (blank, right next to the autotiles), and report back if that fixes the problem.