Error when assigning an attribute that hasn't been delegated