fix the bug that all possiblility is zero
fix update bugs
sorting ok!