Fixed XML bug