Fixed bugs in init.ps1