adaptive bug fix