diff --git a/classes/Utils.php b/classes/Utils.php
index fb250417f8efee2d8238d008ddce1d954ff612d2..7d8c4e4d5a18bc91d5c82d72869d610b6bafe13c 100644
--- a/classes/Utils.php
+++ b/classes/Utils.php
@@ -125,15 +125,17 @@ class Utils{
   	$a = explode(",", $accept_string);
   	$b = array();
   	foreach($a as $v){
-  	  if(strstr($v, ";")){  	  
-  	  	$aux = explode(";q=", $v);
-  	  	foreach($conf['http_accept'] as $formatTypeArray){
+  	  foreach($conf['http_accept'] as $formatTypeArray){
+  	  	if(strstr($v, ";")){
+  	  	  $aux = explode(";q=", $v);
   	  	  if(in_array($aux[0], $formatTypeArray)){
   	  	  	$b[$aux[0]] = $aux[1];
   	  	  }
+  	  	}else{
+  	  	  if(in_array($v, $formatTypeArray)){
+  	  	  	$b[$v] = 1;
+  	  	  }
   	  	}
-  	  }else{
-  	  	$b[$v] = 1;
   	  }
   	}
   	$a = $b;
@@ -301,7 +303,7 @@ class Utils{
   	  	if(Utils::getResultsType($query) == $conf['endpoint']['select']['output']){
   	  	  $rPointer[$modelFile] = Utils::sparqlResult2Obj($aux);
   	  	  /*if(sizeof($rPointer)>0){
-  	  	  	$rPointer[$modelFile]['first'] = $rPointer[$modelFile][0];
+  	  	  $rPointer[$modelFile]['first'] = $rPointer[$modelFile][0];
   	  	  }*/
   	  	}else{
   	  	  $rPointer[$modelFile] = $aux;
@@ -310,7 +312,7 @@ class Utils{
   	  	if(Utils::getResultsType($query) == $conf['endpoint']['select']['output']){
   	  	  $rPointer = Utils::sparqlResult2Obj($aux);
   	  	  /*if(sizeof($rPointer)>0){
-  	  	  	$rPointer['first'] = $rPointer[0];
+  	  	  $rPointer['first'] = $rPointer[0];
   	  	  }*/
   	  	}else{
   	  	  $rPointer = $aux;
diff --git a/common.inc.php b/common.inc.php
index 7abd980ad478322b24523e3ee0adcf57ba81c86c..0def982e2084c4ddb36c48f983e9719dc59f4476 100644
--- a/common.inc.php
+++ b/common.inc.php
@@ -23,7 +23,7 @@ $conf['view']['default'] = 'default';
 
 $conf['resource']['url_delimiter'] = "%u";
 
-$conf['http_accept']['html'] = array('text/html', 'application/xhtml+xml');  
+$conf['http_accept']['html'] = array('text/html');  
 $conf['http_accept']['rdf']  = array('application/rdf+xml');
 $conf['http_accept']['ttl']  = array('text/n3', 'application/x-turtle', 'application/turtle', 'text/turtle');
 $conf['http_accept']['json'] = array('application/json', 'application/x-javascript', 'text/javascript', 'text/x-javascript', 'text/x-json');