fix bug and update some example