Resolved off by one error.

The top_n method was returning one more result than it should have due
to an off by one error.