Fixed bugs before making main categories/drugs tree