fix bugs in common
Merge remote-tracking branch 'origin/master'