fixed for empty post type