Fix bug. Wrong attribute extraction