Custom Post Type bug fixed