logsize reset at the right position