fix access to table positions