Pep Guardiola vowed to curb his behaviour after he was sent to the stands during the midweek defeat to Liverpool in the Champions League.