Yes it is sorry,

I just fixed it by moving the code in the tpl_header file...Thanks.