fix error due to attempting to create a Revision with a bad index