Fixed bug in section locator code