Fix bug
Apply rename key in table.py to template