fixed 2 compilation errors