fix compile error from bad refactoring