fix a bug: attributes were considered as nodes -> using first_child_x