bugfix in the row split algorithm