fix rev checkout