fixed zero similarity problem