bug fix in finding faults