How do I fix this image glitch?

It kinda helped. And by that I mean it works for a second. And if I deal with anything else (like doing the same thing to the adjacent wall) everything goes to hell again and now it is happening to the floors…

Notice in the picture. Some tiles goes 90 degrees and other stretch as I do as you suggested.