Bugfix: Array out-of-bounds finding similar blocks