Shape was wrong on access function. It hab been missing the -1.