fix template and header size