Fix var name conflict in filter