Fixed a bug when sources are not prefiltered