fixed issue#21 export with no name attribute