fix bug in create attribute line