fix clean-install problems