The code itself looks fine. Only thing I can see is that perhaps you haven't got the code placed in the proper place in the meta section. It should be in the <head> section.
Can you provide a link to the actual page so I can see the rest of the code?