Fix errors when installing for first time.