fix bug for logon