fixed some bugs inconfig sync