fixing crashes because of missing xml tags or missing xmls