fix the compiler error