Fixed an issue where attributes were traversed.