Add flush_rewrite_rules for custom post type permlinks changes.