fix bug in writing oplog stuff to secondaries