fix majority bug
log update