Repaired an error of local atribute to global atribute. references to issue #12