Return correct value for `getSectionForPosition`, fixes #3