Fixed bug with source counts.