fix compile-errors