Fixed a bug that would exclude wrongly.