Bug fix

Attributes being used incorrectly