Fixed the problem with topn() sorting - it wasn't computing score, which resulted in strange errors