fix for multiple tables in one document