Fixing bug when similarity matrix is not correctly updated after multiple consecutive actions executed within a short interval.