fix bugs in porperties substitution of config files