fix calling loadData on empty appId