Bug fix, check in many cases if activity is inDisplay, like running
thread