fixed post type generator bug