fix expire fail while target key length of 1 bit