make category key work if the app_id is null