Fixed a problem with protected attributes