Undoing error in horizontal window shrinking