Fixed app configuration code