fix constructor assignment of protected members.