Added a little if loop where similarity is equal to 0