Fix for wrong array name, and cast simple_xml var as string.