Fix length of expected bytes