fixed the checking of secondary sources