fixing error on is_post