Fixed bug that caused exclusions to be ignored.