fix bug of reinstallation