fix a bug on comparison between configsets
fix a bug on loss computation