diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php
index e5ebd58e2cf2a1212cb9bc3ae90522d8ad1838d1..948f200349ce1139a3961dd674a44e4b80c1a7bf 100644
--- a/htdocs/main.inc.php
+++ b/htdocs/main.inc.php
@@ -1825,7 +1825,7 @@ if (! function_exists("llxFooter"))
 	 * @param	string	$zone		'private' (for private pages) or 'public' (for public pages)
      * @return	void
      */
-    function llxFooter($comment='',$zone='pivate')
+    function llxFooter($comment='',$zone='private')
     {
         global $conf, $langs;
 
diff --git a/htdocs/product/stock/class/entrepot.class.php b/htdocs/product/stock/class/entrepot.class.php
index b28a8f9451f5313044f5bcf586421a85b8f3c955..61c88abcaa50c71f6c420c780f450334b53f9e8a 100644
--- a/htdocs/product/stock/class/entrepot.class.php
+++ b/htdocs/product/stock/class/entrepot.class.php
@@ -32,7 +32,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/commonobject.class.php';
  */
 class Entrepot extends CommonObject
 {
-	public $element='label';
+	public $element='stock';
 	public $table_element='entrepot';
 
 	var $id;
diff --git a/htdocs/product/stock/class/mouvementstock.class.php b/htdocs/product/stock/class/mouvementstock.class.php
index e8861d60ddbc1e5d122459c756cf3e41997c2e46..2d4a8971f1b6ecd5d4991159308e2a39f767e7c1 100644
--- a/htdocs/product/stock/class/mouvementstock.class.php
+++ b/htdocs/product/stock/class/mouvementstock.class.php
@@ -265,7 +265,7 @@ class MouvementStock
 		if (! $error)
 		{
 			$this->db->commit();
-			return 1;
+			return $mvid;
 		}
 		else
 		{