Fixing bug on Mac where the similarity matrix does not update.