fixed body class bug for global $post