Fix bug in custodian for incorrect shift.