Solving bugs for generation the ids for the xml in figis