fixed inactive bug.