Ritchie knows ill-discipline must be tightened up