Fixed typos
Fixed compilation errors