fixed a bug with multiple exclusions