fixed double fetch() problem