Repair a bug with open shapes