fix bugs around configuration script.