fix compile error karena refactoring