Fix payload size, and don't use sizeof() the wrong way