Fixes the bug of table with in generate response.