Fix plot index addressing