Fixed two compilation errors