Fixes tableheaders in template