set application ID correctly