Fixed app running in background method.