fix a bug in updating relents