Fixed detection of idle to running states