Fix adding of revision