Fixing issue with clearing version history