Fix a bug in helper's common.sh