fix undefined offset error
[release: 120]