solved bug reading xml