fixed checking for proto parsing errors
Changed format of proto color from bytes array to int32