You've probably "painted" the top layer or second layer with a blank passable tile.
Grab an impassable tile that's not likely to be used on the top two layers, go to both of those layers, and "paint" in an open area. Keep painting in open areas (use F4 to darken the other layers) until all the tiles are either painted with this temporary tile, or contain something that you really want there. Then grab the top-left tile (should be blank if it's an outdoor area), and paint all that back out again.
Repeat for the next layer.
At least ... that's how I got myself into that problem and back out again. It might depend on the tileset you're using too.