Fix length of payload