fixed minor compilation errors