fix a bug in loading attributes when the node ids are non-integers