Fix bug when populate attributes of node