fix isRunning test