fix logging info and offset error.

rt.