fix the post meta check