Correction to avoid infinite loop due to unactive categories