table structure fix