Fixed app id retrieval