fixed table id bug