fix to rewrite slug of post type register