Fixed a race condition while installing