legacy: merge fix for bibclassify

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>