fix segfault, i hope, caused by case where unique flag filters out every block in range