Fixed setting protected properties in the constructor