fix a bug: recalculate relevance more than once

Signed-off-by: pntruongan <pntruongan@pnta-laptop.localdomain>