Fix set function with filtered variable