Changed deprecated attribute