fix for how set_fact works