Fix protected attributes