redirect fix

- use `template_redirect` instead of `wp_head`