fixed restarting app after closed