fix check idle bug