fix compile time errors