FIXED: publishing pending items not handling arrays properly.