Fixed issue with accessing arrays in the payload variable