fixed a bug to prune low-scored results