Fix some mistake of common.sh

Fix some mistake of common.sh

Ready to merge.