Fixed error when reinstalling