Fixed button export to XML bug