Fixed bug with filtering that gave same document with two filters.