Fixed a bug where the revision would not be set as approved