buaazp: fixed bug boundary length - 2.