Fix seek in logger