fix post type errors