fix bug 1328694: missed check on appmanager name when adding