Update common.sh

Fixed major bug