Fixed problem I cause by accidentally deleting code from LoadApplications