Fix application API to properly filter out remote apps