Fix seriously horked data refresh logic

Should fix #19.  r? @rfk