fix select post type bug