fix bug with idles not being decremented