Fix bug with exclude categories option