fixes wildcard patterns in for generators