fix error when using a string as payload