Why do I get incorrect structures when using structure filter?