fixed bug in xml+meta auto repair