fixed bug with new 2-guard-bit scheme