Bugfix when setting the account to online