small fix for te k-way merge