fixed post type bug