Fix for custom post type archive.