fixed enum problem with protobuf