fix compile error in bad branch