Fix bug in stem subregion positions being calculated incorrectly.