Fixed off-by-one-bit error