Fixes bug in Logon.ps1