[bugfix] on-off matrix position calculations