Fixed bound check for number of sources/sinks per core.