Long jail terms are no deterrent - chief judge