Fix post type bug