repair bug.