filtered query parses _name incorrectly
fixes #4960