fix get log size