also fixed bug in the way that stratified source skips over inactive elements