fixing little bugs
Merge branch 'master' into hongkun