repair for bug