fixed struct attribute access