fixed bug with element id inclusion in the table template