Fix tablePosition