fixed compilation errors.