Fixed a bug where the first blockw as always being returned