Fixed offset in the decode() func