fix error data in getPayload should read params$data