repair a bug