fix compile time error