Main tag fix for Safari and IE