Fixed initialization from protos.