Fix bug on similarity pagination (closes #33)