Fix bug on attach element in element.php (simply not work before...)