payload size bug fix