Fix ordering of revertions