bugfix in cuztom post types plugin