added a fix for missing cells in tables