Improve similarity algorithm
Just a litle 'warning' fix