#176 rows are compacted, handle minimum rows number, fixed localization