fix error in xml temlates