Fixed xml validation bug