fixed missing attribute bug