fix bad table behavior