fix save to proto