Fixed error logs during installation and more fixes