Fixed isrunning method