Bugfix for longest wall searching.