Bug fixing: using confidence to choose prediction in combined method