fix compile error from hasty refactoring