Fixed create attribute issue