Bug fixes to dynamic tables