fix duplicate sqlfetch