Corrected bug in alignment without looking at recent walls.