Fix some bug.
Support data duplicate, re-order and lost.