Fixed revert issue in proto