Fix rename tag crash