Table not showing when view slide show

I have manually added a 2x2 table on a slide and save it as a ppt file. Next, I programmatically added the saved table to a slide, added new rows and removed the last row of the table. However, when I try viewing the generated presentation in slide show mode the table is missing from the slide. One thing I notice is that when I click and select the table in normal mode; it's no longer a table shape anymore. If I commented out the line that delete the last row of the table; then I was able to see the table both in normal and slide show mode.

Any ideas what could cause the table not showing in slide mode???

Thanks!

I think I had a similar problem. when I delete last row/column in a table the table does not remain table anymore. it becomes a set of lines and shapes