fixed obtainig of categories
in link extraction