Fixed this using Id editor. In order to select the way that is under another, just select any point of that way and press [Ctrl]+[Up]. That will bring you the list of ways this point belongs to. Then you can just click the one you need.