diff --git a/bin/access-check-manager.pl.in b/bin/access-check-manager.pl.in
index 43652a87aab052d07b1181e3cbf7450840ae5a23..465613ae780e3badc02bdd08f907be65340bfe8f 100755
--- a/bin/access-check-manager.pl.in
+++ b/bin/access-check-manager.pl.in
@@ -55,14 +55,14 @@ AccountManager::DB->register_db(
     database => $configuration->{database}->{name},
     host     => $configuration->{database}->{host},
     password => $configuration->{database}->{password},
-    username => $configuration->{database}->{user}
+    username => $configuration->{database}->{username}
 );
 
 my $db = AccountManager::DB->new();
 
 SWITCH: {
     if ($action eq 'add_account')    { add_account();    last SWITCH; }
-    if ($action eq 'list_accounts')  { list_account();   last SWITCH; }
+    if ($action eq 'list_accounts')  { list_accounts();  last SWITCH; }
     if ($action eq 'add_service')    { add_service();    last SWITCH; }
     if ($action eq 'list_services')  { list_services();  last SWITCH; }
     if ($action eq 'add_token')      { add_token();      last SWITCH; }