fix a bug in install scripts.