fix NPE when user didn't specify appManager