Fix the key being used for sub applications