Fix function references in all apps