Fix bug where scheduled refreshes not happening

Because of the way the list of refresh jobs was constructed.