R model path fix