dynamic filtering, fix bad ids