Resolve undefined offset