Fixed an error that the setup failed on second time