Fix attributes initialization