fix n_active