fix post type plugin activation