Fix bug introduced by similarity fix