It was using a non-existent socket[] index and not doing it for all sockets.
Attach a file by drag & drop or click to upload