bug fix : Do not use global $post