Fixed app open bug