fixed foreground apps interfering with each other