improved/fixed demographic filter thread safety