fixed some bugs in check only xml extension when read configs