fix for editing table from with custom template
fix for editing table from with custom template