Fix bug with multiple post types for metaboxes