R type fix