Fix copy pasta attribute assignment