Prevented error when post types are filtered