Fix empty payload issue.