Fix relationship from subject to libraries